<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>五彩文字动画</title>
    <style>
        @keyframes colorful-text {
            0% {
                color: red;
            }

            20% {
                color: orange;
            }

            40% {
                color: yellow;
            }

            60% {
                color: green;
            }

            80% {
                color: blue;
            }

            100% {
                color: purple;
            }
        }

        .colorful-text {
            font-size: 24px;
            animation: colorful-text 6s infinite linear;
        }
    </style>
</head>

<body>

    <p class="colorful-text">五彩斑斓的文字效果</p>

</body>

</html>